<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台管理系统</title>
    <link rel="icon" href="/img/logo.png" type="image/x-icon"/>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/script/jquery-3.3.1.min.js"></script>
    <script src="/layui/layui.js"></script>
    <script src="/script/admin/app/niubang/desc.js"></script>
</head>
<body>
<input type="hidden" th:value="${sourceURL}" id="sourceURL">
<form class="layui-form" id="form" action="/admin/project/free_project_save">
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">标题</label>-->
<!--        <div class="layui-input-block layui-col-md5">-->
<!--            <input type="text" name="title" lay-verify="required" id="title" th:value="${project.title}" autocomplete="off"  placeholder="请输入标题" class="layui-input">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">类型</label>-->
<!--        <div class="layui-input-block layui-col-md5" id="types">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">关键字</label>-->
<!--        <div class="layui-input-block layui-col-md5">-->
<!--            <input type="text" name="keyword" lay-verify="required" id="keyword" autocomplete="off" value="薅羊毛,最新线报"  placeholder="请输入关键字" class="layui-input">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">首页轮播</label>-->
<!--        <div class="layui-input-block layui-col-md5">-->
<!--            <select name="type"  id="commented" >-->
<!--                <option value="0" >否</option>-->
<!--                <option value="1" >是</option>-->
<!--            </select>-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">上传封面</label>-->
<!--        <div class="layui-input-block layui-col-md5">-->
<!--            <button type="button" class="layui-btn" id="update_cover_btn">上传图片</button>-->
<!--            <input type="hidden" id="cover_img" name="cover" lay-verify="cover" value="">-->
<!--            <div class="layui-upload-list">-->
<!--                <img class="layui-upload-img" id="demo1">-->
<!--                <p id="demoText"></p>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->

    <h3>&nbsp;&nbsp;&nbsp;&nbsp;步骤：</h3>
    <div th:each="step,status:${stepList}">
          <h3 th:text="${status.index+1}+' '+${step.title}"></h3>
          <p th:if="${step.url != null}" >
              <a target="_blank" th:href="${step.url}" th:text="${step.url}"></a>
          </p>
          <p th:if="${step.pic != null}" >
              <img th:src="${step.pic}" width="250px">
<!--              <a target="_blank" th:href="${step.pic}" th:text="${step.pic}"></a>-->
          </p>
        <br>
    </div>


<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">内容</label>-->
<!--        <div class="layui-input-block layui-col-md9" >-->
<!--            <textarea id="addEdit" lay-verify="content" th:text="${project.content}" name="content"></textarea>-->
<!--        </div>-->
<!--    </div>-->

    <div class="layui-form-item layui-col-md-offset1" style="margin-bottom: 25px;">
        <div class="layui-btn" id="submit" lay-filter="form" lay-submit>提交</div>
    </div>


</form>
</body>
</html>